package cn.wangzengqiang.study.designpattern.factory.own.a;

/**
 * 饸饹面店
 */
public class HeleStore {
    public Hele sellHele(String type) {
        Hele hele = null;
        if (type.equals("Jiaxian")) {
            hele = new JiaCountyHele();
        } else if (type.equals("Shanxi")) {
            hele = new ShanxiHele();
        } else if (type.equals("Shaanxi")) {
            hele = new ShaanxiHele();
        }
        hele.huoMian();
        hele.xiaMian();
        hele.putMutton();
        hele.putSeasoning();
        hele.putSoup();
        return hele;
    }
}
